#include "gtkmodulesprivate.h"
#include "gtkprivate.h"
#include "gtkrecentmanager.h"
-#include "gtkresources.h"
#include "gtkselectionprivate.h"
#include "gtksettingsprivate.h"
#include "gtktooltip.h"
g_warning ("Whoever translated default:LTR did so wrongly.\n");
}
- _gtk_register_resource ();
+ _gtk_ensure_resources ();
_gtk_accel_map_init ();
#include "gdk/gdk.h"
#include "gtkprivate.h"
+#include "gtkresources.h"
#if !defined G_OS_WIN32 && !(defined GDK_WINDOWING_QUARTZ && defined QUARTZ_RELOCATION)
return retval;
}
+
+static gpointer
+register_resources (gpointer data)
+{
+ _gtk_register_resource ();
+ return NULL;
+}
+
+void
+_gtk_ensure_resources (void)
+{
+ static GOnce register_resources_once = G_ONCE_INIT;
+
+ g_once (®ister_resources_once, register_resources, NULL);
+}
gchar * _gtk_get_lc_ctype (void);
+void _gtk_ensure_resources (void);
+
gboolean _gtk_boolean_handled_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return,
TEST_PROGS += keyhash
keyhash_SOURCES = keyhash.c \
../gtkkeyhash.c ../gtkkeyhash.h \
+ ../gtkresources.c ../gtkresources.h \
../gtkprivate.c ../gtkprivate.h
keyhash_LDADD = $(progs_ldadd)
keyhash_CFLAGS = -DGTK_COMPILATION \